package cn.webrx;

import java.util.concurrent.TimeUnit;

public class T6 {
    public static void main(String[] args) {
        System.out.printf("%tF %<tT%n", System.currentTimeMillis());
        while (true) {
            //try{
            //    Thread.sleep(1000*60*60*24);
            //}catch(Exception e){
            //    e.printStackTrace();
            //}

            try {
                TimeUnit.DAYS.sleep(7);
            } catch (Exception e) {
                e.printStackTrace();
            }
            System.out.printf("%tF %<tT%n", System.currentTimeMillis());
        }
    }
}
